package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;


/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class PrjAssociate extends Model implements IValidator {
	// Fields    
	private Long id; 
	private Long prjJfId; 
	private String prjCruName; 
	private String prjCruKey; 
	private String prjSonarKey; 
	private String repoName; 
	private String gitUrl; 
		
	//default constructor
    public PrjAssociate() {
    	super();
    }
    
    // Property accessors
	public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
    	this.id = id;
    }
    
	public Long getPrjJfId() {
        return this.prjJfId;
    }
    
    public void setPrjJfId(Long prjJfId) {
    	this.firePropertyChange("prjJfId", this.prjJfId, prjJfId);
    	this.prjJfId = prjJfId;
    }
    
	public String getPrjCruName() {
        return this.prjCruName;
    }
    
    public void setPrjCruName(String prjCruName) {
    	this.firePropertyChange("prjCruName", this.prjCruName, prjCruName);
    	this.prjCruName = prjCruName;
    }
    
	public String getPrjCruKey() {
        return this.prjCruKey;
    }
    
    public void setPrjCruKey(String prjCruKey) {
    	this.firePropertyChange("prjCruKey", this.prjCruKey, prjCruKey);
    	this.prjCruKey = prjCruKey;
    }
    
	public String getPrjSonarKey() {
        return this.prjSonarKey;
    }
    
    public void setPrjSonarKey(String prjSonarKey) {
    	this.firePropertyChange("prjSonarKey", this.prjSonarKey, prjSonarKey);
    	this.prjSonarKey = prjSonarKey;
    }
    
	public String getRepoName() {
        return this.repoName;
    }
    
    public void setRepoName(String repoName) {
    	this.firePropertyChange("repoName", this.repoName, repoName);
    	this.repoName = repoName;
    }
    
	public String getGitUrl() {
        return this.gitUrl;
    }
    
    public void setGitUrl(String gitUrl) {
    	this.firePropertyChange("gitUrl", this.gitUrl, gitUrl);
    	this.gitUrl = gitUrl;
    }
    
   	public boolean validate(Object arg0) {
		//PrjAssociate prjAssociate = (PrjAssociate)arg0;
		//Validation.required("prjAssociate.id",prjAssociate.getId());
		return true;
	}
}